<div style="width:550px;">
<#if errMsg??><div class="lsinfo">${errMsg!}</div></#if>
<#if contract??>
<table class="input w4">
  <tr>
    <th width="85">合同编号</th>
    <td width="160"><input type="text" name="contractCode" value="${contract.contractCode!}" class="disable" maxlength="20" readonly></td>
    <th width="85"></th>
    <td width="160"></td>
  </tr>
  <tr>
    <th>销售日期</th>
    <td><input type="text" name="saleDate" value="${contract.saleDate!}" class="date disable" maxlength="10" readonly></td>
    <th>销售类别</th>
    <td><input type="text" name="saleType" value="${contract.saleType!} - <@value type="memberSaleType" key="${contract.saleType!}"/>" class="disable" readonly></td>
  </tr>
  <tr>
    <th>会员姓名</th>
    <td><input type="text" name="memberName" value="${member.chName!}" maxlength="10" class="disable" readonly></td>
    <th>会员编号</th>
    <td><input type="text" name="memberCode" value="${contract.memberCode!}" class="disable" readonly></td>
  </tr>
  <tr>
    <th>会籍类型</th>
    <td colspan="3"><input type="text" name="contractType" value="${contract.cardType!} - <@value type="cardType" key="${contract.cardType!}"/>" class="w2 disable" readonly></td>
  </tr>
  <tr>
    <th>合同起日</th>
    <td><input type="text" name="contractBegin" value="${contract.beginTime!}" class="date disable" maxlength="10" readonly></td>
    <th>合同迄日</th>
    <td><input type="text" name="contractEnd" value="${contract.endTime!}" class="date disable" maxlength="10" readonly></td>
  </tr>
  <tr>
    <th>合同金额</th>
    <td><input type="text" name="factAmount" value="${contract.factPrice?string("0.00")}" class="disable" readonly></td>
    <th>定金金额</th>
    <td><input type="text" name="earnestAmount" value="${contract.earnestAmount?string("0.00")}" class="disable" readonly></td>
  </tr>
  <tr>
    <th>转入金额</th>
    <td><input type="text" name="inAmount" value="${contract.inAmount?string("0.00")}" class="disable" readonly></td>
    <th>付款金额</th>
    <td><input type="text" name="payAmount" value="${contract.payAmount?string("0.00")}" class="disable" readonly></td>
  </tr>
  <tr>
    <th>合同状态</th>
    <td><#if contract.effectiveDate??><@value type="memberEffectiveType" key="${contract.effectiveType!}"/><#else><#if contract.status=1>正常<#elseif contract.status=2>待审批<#elseif contract.status=3>结束</#if></#if></td>
    <th></th>
    <td></td>
  </tr>
  <tr>
    <td colspan="4"><hr size="1" style="height:1px; color:#dcc; margin-left:10px;"></td>
  </tr>
</table>
<div class="button" style="margin-top:15px; text-align:left;">
  <#if !apr?? && !prt??>无相关重置选项</#if>
  <#if canAddapprove?? && apr??><input type="button" value="重置会籍合同特价审批" onclick="oper('_addapprove?contractCode=${contract.contractCode!}');"></#if>
  <#if canAddprint?? && prt??><input type="button" value="重置老会籍合同电子签名状态" onclick="oper('_addprint?contractCode=${contract.contractCode!}');"></#if></div>
</#if>
</div>